package com.library.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 至尊伍人组
 * @since 2018-09-30
 */
@Data
public class Questions extends Model<Questions> {

    private static final long serialVersionUID = 1L;

    /**
     * 问题id
     */
    @TableId ( value = "questionsId", type = IdType.AUTO )
    private Integer questionsId;
    /**
     * 问题
     */
    private String question;
    /**
     * 问题类型
     */
    private Integer type;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 所属课程Id
     */
    private Integer lessonId;
    /**
     * 选项A
     */
    private String operationA;
    /**
     * 选项B
     */
    private String operationB;
    /**
     * 选项C
     */
    private String operationC;
    /**
     * 选项D
     */
    private String operationD;
    /**
     * 答案
     */
    private String answer;

    @Override
    protected Serializable pkVal() {
        return this.questionsId;
    }

}
